//
//  webtViewController.m
//  shifaOASystem
//
//  Created by michael on 2017/10/16.
//  Copyright © 2017年 czd. All rights reserved.
//

#import "webtViewController.h"

@interface webtViewController ()

@end

@implementation webtViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    self.title =NSLocalizedString(@"友好商协会共享合作平台", nil);
    self.view.backgroundColor = [UIColor whiteColor];
    _webview = [[UIWebView alloc]initWithFrame:CGRectMake(0,0,KScreenWidth,KScreenHeight-kTopHeight)];
      _webview.delegate=self;
      _webview.scalesPageToFit = YES;
    
      [self.view addSubview:_webview];
        NSURL *url = [NSURL URLWithString:self.url];

  [_webview loadRequest:[NSURLRequest requestWithURL:url]];

    
}
-(void)webViewDidFinishLoad:(UIWebView *)webView{
//NSString *injectionJSString = @"var script = document.createElement('meta');"
//"script.name = 'viewport';"
//"script.content=\"width=device-width, initial-scale=1.0,maximum-scale=1.0, minimum-scale=1.01, user-scalable=no\";"
//"document.getElementsByTagName('head')[0].appendChild(script);";
//[webView stringByEvaluatingJavaScriptFromString:injectionJSString];
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
